package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Group;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GroupMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Group record);

    Group selectByPrimaryKey(Long id);

    List<Group> selectAll();

    int updateByPrimaryKey(Group record);

    Group selectByIdAndName(@Param("userId") Long userId, @Param("name") String name);

    List<Group> getGroupByUserId(Long id);
}